import { UNKNOWN } from '../errors/Errors';

export class BusinessException extends Error {
  readonly message: any;

  constructor(description: string, code = UNKNOWN) {
    super();
    this.message = {
      description,
      code,
    };
  }
}
